package com.bioroadlab.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "t_references", catalog = "captures")
public class References implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer sn;
	private Disease TDisease;
	private Gene TGene;
	private String authors;
	private String title;
	private String sources;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "sn", unique = true, nullable = false)
	public Integer getSn() {
		return this.sn;
	}

	public void setSn(Integer sn) {
		this.sn = sn;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "t_disease_sn", nullable = false)
	public Disease getTDisease() {
		return this.TDisease;
	}

	public void setTDisease(Disease TDisease) {
		this.TDisease = TDisease;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "t_gene_sn", nullable = false)
	public Gene getTGene() {
		return this.TGene;
	}

	public void setTGene(Gene TGene) {
		this.TGene = TGene;
	}

	@Column(name = "authors", length = 100)
	public String getAuthors() {
		return this.authors;
	}

	public void setAuthors(String authors) {
		this.authors = authors;
	}

	@Column(name = "title", length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "sources", length = 100)
	public String getSources() {
		return this.sources;
	}

	public void setSources(String sources) {
		this.sources = sources;
	}

}